gdkarray: Inline splice and reserve
authorAlexander Larsson <alexl@redhat.com>
Tue, 29 Sep 2020 13:57:33 +0000 (15:57 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 29 Sep 2020 13:57:33 +0000 (15:57 +0200)
commit8a0dd452d2d9141e68f2d5eb82475735adb7c861
tree9db4ffaad26c2dd0451dafecb1d9b6361a43442d
parent2e5caa68bc5b37fdf1b808b304c6d5499f21ab48
gdkarray: Inline splice and reserve

This inlines the splice and reserver GdkArray calls. These are
typically only called from the gdk_array_(append/set_size) functions
anyway, and inlining the caller means we can constant propagate the
constant arguments in those calls. Its hard to get exact numbers, but
in fishbowl i noticed a significant decrease in the time spent in
the array code when pushing and poping states.
gdk/gdkarrayimpl.c